package com.qingchi.web;

import com.socialuni.model.config.EnableSocialModel;
import com.socialuni.social.config.EnableSocialSDK;
import com.socialuni.uniapp.EnableUniAppSDK;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
//@EnableCaching
@EntityScan({"com.qingchi", "com.socialuni"})
@EnableJpaRepositories({"com.qingchi", "com.socialuni"})
@ComponentScan({"com.qingchi", "com.socialuni"})
@EnableUniAppSDK
@EnableFeignClients
@EnableSocialSDK
@EnableSocialModel
public class ServerWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerWebApplication.class, args);
    }
}
